import {defineStore} from "pinia";

/**
 * 租户store
 */
export const deptStore = defineStore('dept', {
    state: () => ({
        deptUpload: false,
        deptInsertOpen: false,
        updateDeptId: '0',
        parentDeptId: '-000000'
    }),
    actions: {
        setDeptUpload(value: boolean) {
          this.deptUpload = value
        },
        setDeptInsertOpen(value: boolean) {
            this.deptInsertOpen = value
        },
        setParentDeptId(value: string) {
            this.parentDeptId = value
        },
        setUpdateDeptId(value) {
            this.updateDeptId = value
        }
    }, getters: {
    }
})